package com.blacktry.entity.easypoidata;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.net.URL;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author blackTry
 * @since 2021-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DeriveExcel对象", description="")
public class DeriveExcel implements Serializable {

    private static final long serialVersionUID = 1L;

//    @ExcelIgnore
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ExcelProperty("学号")
    private String username;

    @ExcelProperty("姓名")
    private String name;

    @ExcelProperty("班级")
    private String affiliation;

    @ExcelIgnore
    private String examId;

    @ExcelIgnore
    private String paper;

    @ExcelProperty(value = "考卷")
    @TableField(exist = false)
    private URL paperImg;

    @ExcelProperty("识别答案")
    private String scanAnswer;

    @ExcelProperty("客观分数")
    private Double objScore;

    @ExcelProperty("主观分数")
    private Double subScore;

    @ExcelProperty("总分")
    private Double score;

    @ExcelProperty("交卷时间")
    private String answerDate;

    @ExcelProperty("考试用时")
    private String time;

    @ExcelProperty("提交人id")
    private String commitUsername;

    @ExcelProperty("提交人身份")
    private String commitRole;

    @ExcelProperty("激活状态")
    private Boolean enable;
}
